import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

import './assets/base.less'
// 导入+注册组件
import BaseButton from '@/components/BaseUI/BaseButton.vue'
import BaseCheckBox from '@/components/BaseUI/BaseCheckBox.vue'
import BaseBox from '@/components/BaseUI/BaseBox.vue'
import BaseTitle from '@/components/BaseUI/BaseTitle.vue'
import BaseInput from '@/components/BaseUI/BaseInput.vue'
import BaseInputNum from '@/components/BaseUI/BaseInputNum.vue'
import BaseSwitch from '@/components/BaseUI/BaseSwitch.vue'
import BaseTabs from '@/components/BaseUI/BaseTabs.vue'


// 注册上一步导入的所有组件
Vue.component(BaseButton.name, BaseButton)
Vue.component(BaseCheckBox.name, BaseCheckBox)
Vue.component(BaseBox.name, BaseBox)
Vue.component(BaseTitle.name, BaseTitle)
Vue.component(BaseInput.name, BaseInput)
Vue.component(BaseInputNum.name, BaseInputNum)
Vue.component(BaseSwitch.name, BaseSwitch)
Vue.component(BaseTabs.name, BaseTabs)

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
